package com.jnu.student.myfirstapplication.data;

import java.io.Serializable;

public class BookItem implements Serializable {
    private String bookName;
    private final int bookCoverImageId;

    public BookItem(String name, int imageId) {
        this.bookName = name;
        this.bookCoverImageId = imageId;
    }

    public int getCoverResourceId() {
        return this.bookCoverImageId;
    }

    public String getTitle() {
        return this.bookName;
    }

    public void renameTitle(String name) {
        this.bookName = name;
    }

}